package com.lyxedu.services.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lyxedu.mapper.FilesMapper;
import com.lyxedu.pojo.Files;
import com.lyxedu.pojo.User;
import com.lyxedu.services.FileService;
import org.springframework.stereotype.Service;

@Service
public class FileServiceImpl extends ServiceImpl<FilesMapper, Files> implements FileService{

    @Override
    public boolean saveOrUpdateUser(Files files) {
        if (files.getId() != null){
//            修改
            return updateById(files);
        }
        return save(files);
    }
}
